<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
    <meta http-equiv='Content-Security-Policy' content='block-all-mixed-content'>
    <title>测试JPush</title>
    <style>
        img {
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    测试点击跳转~~~~~~
    <button id="btn" onclick="openUrl()">点击跳转</button>
    <br>
    <a href="tel:15732136114">拨打电话</a>
    <script type="text/javascript" src="./js/android/cordova_android.js"></script>
    <script>
            document.addEventListener("deviceready", onDeviceReady, false);
            function onDeviceReady() {
                alert(cordova.InAppBrowser)
                // window.open = cordova.InAppBrowser.open;
            }

            function openUrl() {
                alert(111111)
                alert(cordova.InAppBrowser)
                if (!cordova.InAppBrowser) {
                    return;
                }
                cordova.InAppBrowser.open('https://mint-ui.github.io/docs/#/zh-cn2', '_system', 'location=no,toolbar=yes,toolbarposition=top,closebuttoncaption=关闭');
            }

        // document.getElementById('btn').onclick = openUrl;
    </script>
</body>

</html>